import Vue from 'vue';

export function getRegisterInfo() {
  return Vue.prototype.getRequest('/portal/register');
}
export function getPortalInfo() {
  return Vue.prototype.getRequest('/portal');
}
export function getAboutInfo() {
  return Vue.prototype.getRequest('/portal/about');
}
export function getSiteMapInfo() {
  return Vue.prototype.getRequest('/portal/sitemap');
}
export function getQAInfo() {
  return Vue.prototype.getRequest('/portal/qa');
}
export function getHomeData() {
  return Vue.prototype.getRequest('/portal/home');
}

export function getPolicies(q) {
  return Vue.prototype.getRequest('/portal/policy', q);
}

export function getOnePolicy(id) {
  return Vue.prototype.getRequest(`/portal/policy/${id}`);
}

export function getStandards(q) {
  return Vue.prototype.getRequest('/portal/standard', q);
}

export function getOneStandard(id) {
  return Vue.prototype.getRequest(`/portal/standard/${id}`);
}

export function getStdOrgs(q) {
  return Vue.prototype.getRequest('/portal/stdorg', q);
}

export function getOneStdOrg(id) {
  return Vue.prototype.getRequest(`/portal/stdorg/${id}`);
}

export function getDatasets(q) {
  return Vue.prototype.getRequest('/portal/dataset', q);
}

export function getOneDataset(id) {
  return Vue.prototype.getRequest(`/portal/dataset/${id}`);
}

export function getTools(q) {
  return Vue.prototype.getRequest('/portal/tools', q);
}

export function getOneTool(id) {
  return Vue.prototype.getRequest(`/portal/tools/${id}`);
}

export function getNews(q) {
  return Vue.prototype.getRequest('/portal/news', q);
}

export function getOneNews(id) {
  return Vue.prototype.getRequest(`/portal/news/${id}`);
}

export function getCases(q) {
  return Vue.prototype.getRequest('/portal/cases', q);
}

export function getOneCase(id) {
  return Vue.prototype.getRequest(`/portal/cases/${id}`);
}

export function getSolutions(q) {
  return Vue.prototype.getRequest('/portal/solutions', q);
}

export function getOneSolution(id) {
  return Vue.prototype.getRequest(`/portal/solutions/${id}`);
}

export function getAnnouncements(q) {
  return Vue.prototype.getRequest('/portal/announcement', q);
}

export function getOneAnnouncement(id) {
  return Vue.prototype.getRequest(`/portal/announcement/${id}`);
}

export function getServices(q) {
  return Vue.prototype.getRequest('/portal/service', q);
}

export function getOneService(id) {
  return Vue.prototype.getRequest(`/portal/service/${id}`);
}

export function getTests(q) {
  return Vue.prototype.getRequest('/portal/tests', q);
}

export function getOneTestResult(id) {
  return Vue.prototype.getRequest(`/portal/tests/${id}`);
}

export function globalSearch(q) {
  return Vue.prototype.getRequest('/portal/search', q);
}

export function getFeedbacks(q) {
  return Vue.prototype.getRequest('/portal/feedback', q);
}

export function industryEvals(q) {
  return Vue.prototype.getRequest('/portal/industryeval', q);
}

export function getOneIndustryEval(id) {
  return Vue.prototype.getRequest(`/portal/industryeval/${id}`);
}

export function industryEvalsResults(q) {
  return Vue.prototype.getRequest('/portal/industryeval/tests', q);
}

export function olTrainings(q) {
  return Vue.prototype.getRequest('/portal/oltraining', q);
}

export function getOneOlTraining(id) {
  return Vue.prototype.getRequest(`/portal/oltraining/${id}`);
}

export function achievements(q) {
  return Vue.prototype.getRequest('/portal/achievements', q);
}

export function getOneAchievement(id) {
  return Vue.prototype.getRequest(`/portal/achievements/${id}`);
}

export function consults(q) {
  return Vue.prototype.getRequest('/portal/consult', q);
}

export function getOneconsult(id) {
  return Vue.prototype.getRequest(`/portal/consult/${id}`);
}

export function basicinfo(q) {
  return Vue.prototype.getRequest('/portal/basicinfo', q);
}

export function getOneBasicinfo(id) {
  return Vue.prototype.getRequest(`/portal/basicinfo/${id}`);
}

export function reports(q) {
  return Vue.prototype.getRequest('/portal/reports', q);
}

export function getOneReport(id) {
  return Vue.prototype.getRequest(`/portal/reports/${id}`);
}

export function getCommitteeData() {
  return Vue.prototype.getRequest('/sdcomm');
}

export function getCommitteeInfo() {
  return Vue.prototype.getRequest('/sdcomm/status');
}

export function getCommitteeFields(q) {
  return Vue.prototype.getRequest('/sdcomm/fields', q);
}
